<template>
	<view class="x-wrapper-hospitalCard">
		<view class="content">
			<view class="info">
				<view class="name">{{ hospitalInfo.name }}</view>
				<view class="desc">
					<span>{{ hospitalInfo.level }}</span>
					<span>{{ hospitalInfo.type }}</span>
				</view>
				<view>
					<view class="info-detail-item">
						<img src="@/static/icon/phone.png" style="width:32rpx ;height: 32rpx;" />
						<span style="font-size: 28rpx;margin-left: 6rpx;">{{hospitalInfo.tel}}</span>
					</view>
					<view class="info-detail-item">
						<img src="@/static/icon/cityChoose.png" style="width:32rpx ;height: 32rpx;" />
						<span style="font-size: 28rpx;margin-left: 6rpx;">{{hospitalInfo.address}}</span>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name: 'hospitalCard',
		props: {
			hospitalInfo: {
				type: Object,
				required: true
			}
		},
		data() {
			return {


			}
		},
		methods: {

		}
	}
</script>

<style lang="scss" scoped>
	.x-wrapper-hospitalCard {
		background-image: url('https://peiyiwang.obs.cn-east-3.myhuaweicloud.com:443/file%2F8557993346523743.png');
		background-size: cover;
		border-radius: 18rpx;
		text-align: center;
		font-size: 34rpx;
		width: 100%;


		.content {

			display: flex;


			.info {
				margin-left: 18rpx;
				display: flex;
				flex-direction: column;
				padding: 20rpx 0;
				height: 160rpx;

				.info-detail-item {
					display: flex;
					align-items: center;
					color: #919191;
				}


				.name {
					font-size: 36rpx;
					color: #333333;
					letter-spacing: 2px;
					text-align: left;

				}

				.desc {
					display: flex;


					span {
						font-size: 20rpx;
						font-weight: 400;
						color: #fff;
						line-height: 30rpx;
						letter-spacing: 1px;
						background-color: #386fff;
						padding: 0 10rpx;
						border-radius: 20rpx;
					}

					span:nth-child(2) {
						margin-left: 16rpx;
					}


				}

			}



		}

	}
</style>